/* =========================================================
   GURDWARA GURU GRANTH SAHIB PUNJABI SCHOOL
   MASTER STYLESHEET
   Cleaned and consolidated version
   ========================================================= */

/* =========================================
   PUNJABI SCHOOL COLOUR THEME
   ========================================= */

:root {
    --school-navy: #0b2d5c;
    --school-navy-dark: #08244b;
    --school-gold: #c89b2b;
    --school-white: #ffffff;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: #f5f5f5;
    color: #222;
    line-height: 1.6;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: #0B2D5C;
    text-decoration: none;
}

a:hover {
    color: #C89B2B;
}

h1, h2, h3, h4 {
    line-height: 1.25;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* =========================
   HEADER
========================= */


.site-header {
    background: var(--school-navy);
    color: var(--school-white);
    width: 100%;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;

    min-height: 120px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 20px 30px;
}


/* School logo */

.school-logo img {
    width: 90px;
    height: 90px;

    object-fit: contain;
    display: block;
}


/* School name */

.school-title {
    flex: 1;
    margin-left: 25px;
}

.school-title h1 {
    color: var(--school-white);

    font-size: 30px;

    margin: 0 0 6px;

    line-height: 1.2;
}

.school-title p {
    color: var(--school-white);

    margin: 0;

    font-size: 15px;
}


/* Gold accent underneath header */

.site-header::after {
    content: "";

    display: block;

    height: 4px;

    background: var(--school-gold);
}


header {
    background: #0B2D5C;
    color: #fff;
    padding: 0;
    border: none;
    box-shadow: none;
}

.header-container {
    width: 90%;
    max-width: 1200px;
    min-height: 125px;
    margin: 0 auto;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
}

.school-logo img {
    width: 100px;
    height: auto;
}

.school-title {
    flex: 1;
    margin-left: 10px;
}

.school-title h1 {
    margin: 0;
    color: #fff;
    font-size: 30px;
}

.school-title p {
    margin: 5px 0 0;
    color: #ddd;
    font-size: 15px;
}

/* =========================
   HAMBURGER MENU
========================= */

.menu-btn {
    font-size: 32px;
    background: none;
    border: none;
    cursor: pointer;
    color: #fff;
    padding: 8px;
}

.side-menu {
    height: 100%;
    width: 0;
    position: fixed;
    top: 0;
    right: 0;
    background: #0B2D5C;
    overflow-x: hidden;
    transition: width 0.35s ease;
    padding-top: 80px;
    z-index: 9999;
}

.side-menu a {
    display: block;
    padding: 16px 35px;
    color: #fff;
    font-size: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.side-menu a:hover {
    background: #C89B2B;
    color: #222;
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 40px;
    color: #fff;
}

.menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    display: none;
    z-index: 9000;
}

/* =========================
   HERO / HOME
========================= */

.hero {
    position: relative;
    background:
        linear-gradient(rgba(11,45,92,.70), rgba(11,45,92,.70)),
        url("../images/sports day 2024.png") center center / cover;
    min-height: 550px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #fff;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.15);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 850px;
    padding: 20px;
}

.hero h1 {
    color: #fff;
    font-size: 58px;
    margin: 0 0 20px;
}

.hero p {
    font-size: 22px;
    margin-bottom: 35px;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* =========================
   BUTTONS
========================= */

.btn,
.btn-small,
.download-btn {
    display: inline-block;
    transition: 0.3s;
}

.btn {
    background: #0B2D5C;
    color: #fff;
    padding: 12px 24px;
    border-radius: 7px;
    font-weight: bold;
}

.btn:hover,
.btn-small:hover,
.download-btn:hover {
    background: #C89B2B;
    color: #222;
    transform: translateY(-3px);
}

.btn-small {
    margin-top: 15px;
    background: #0B2D5C;
    color: #fff;
    padding: 10px 18px;
    border-radius: 6px;
}

.download-btn {
    margin-top: 20px;
    background: #0B2D5C;
    color: #fff;
    padding: 12px 24px;
    border-radius: 8px;
}

/* =========================
   BANNERS / PAGE TITLES
========================= */

.page-banner {
    background: linear-gradient(135deg, #0B2D5C, #C89B2B);
    color: #fff;
    text-align: center;
    padding: 55px 20px;
    border: none;
}

.page-banner h1 {
    margin: 0;
    color: #fff;
    font-size: 42px;
}

.notice-bar,
.announcement {
    background: #C89B2B;
    color: #fff;
    text-align: center;
    padding: 15px;
    font-weight: 600;
}

/* =========================
   GENERAL CONTENT
========================= */

main {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 50px 0;
}

.section-title {
    text-align: center;
    color: #0B2D5C;
    margin-bottom: 15px;
}

.section-subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 50px;
}

.page-content {
    padding: 70px 0;
}

.page-content h2 {
    color: #0B2D5C;
    margin-bottom: 20px;
}

.page-content p {
    margin-bottom: 18px;
    color: #555;
}

.about {
    background: #F5F7FA;
}

/* =========================
   WELCOME / HOME
========================= */

.welcome {
    background: #fff;
    padding: 80px 0;
}

.welcome-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.welcome img {
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,.12);
}

.welcome-text h2 {
    margin-bottom: 25px;
}

.welcome-text p {
    margin-bottom: 18px;
}

/* =========================
   FEATURE / QUICK CARDS
========================= */

.feature-grid,
.quick-links,
.news-grid,
.class-grid,
.classroom-grid,
.policy-grid,
.parent-grid,
.staff-grid,
.gallery-grid {
    display: grid;
}

.feature-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-card {
    background: #fff;
    padding: 35px;
    border-radius: 15px;
    border-top: 6px solid #C89B2B;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0,0,0,.08);
    transition: 0.3s;
}

.feature-card:hover {
    transform: translateY(-8px);
}

.feature-card i {
    font-size: 45px;
    color: #C89B2B;
    margin-bottom: 20px;
}

.quick-links {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
}

.quick-card {
    background: #0B2D5C;
    color: #fff;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    transition: 0.3s;
}

.quick-card:hover {
    background: #C89B2B;
}

.quick-card h3 {
    color: #fff;
}

/* =========================
   PHOTOS / GALLERY
========================= */

.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.photo-grid img,
.gallery-grid img {
    width: 100%;
    border-radius: 12px;
    cursor: pointer;
    transition: 0.35s;
}

.photo-grid img:hover,
.gallery-grid img:hover {
    transform: scale(1.03);
    box-shadow: 0 10px 30px rgba(0,0,0,.18);
}

.gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.photo-caption,
.caption {
    text-align: center;
    margin-top: 10px;
    color: #666;
    font-size: 14px;
}

/* =========================
   STATISTICS / CTA
========================= */

.stats {
    background: #0B2D5C;
    color: #fff;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 30px;
    text-align: center;
}

.stat-box h2 {
    color: #C89B2B;
    font-size: 46px;
}

.stat-box p {
    color: #fff;
}

.cta {
    background: linear-gradient(135deg, #0B2D5C, #173f78);
    color: #fff;
    text-align: center;
}

.cta h2 {
    color: #fff;
    margin-bottom: 20px;
}

.cta p {
    max-width: 800px;
    margin: 0 auto 30px;
}

/* =========================
   TWO COLUMN / VIDEO
========================= */

.two-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.two-column img {
    border-radius: 15px;
}

.video-box {
    background: #ddd;
    height: 400px;
    border-radius: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 30px;
    color: #666;
}

/* =========================
   NEWS
========================= */

.news-grid {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.news-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 22px rgba(0,0,0,.08);
}

.news-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.news-content {
    padding: 25px;
}

/* =========================
   INFORMATION BOXES
========================= */

.info-box,
.intro-box {
    background: #fff;
    border-left: 6px solid #C89B2B;
    padding: 30px;
    margin: 35px 0;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0,0,0,.08);
}

.info-box h3 {
    color: #0B2D5C;
}

/* =========================
   CLASSES
========================= */

.class-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.class-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,.08);
    transition: 0.3s;
}

.class-card:hover {
    transform: translateY(-8px);
}

.class-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.class-content {
    padding: 25px;
}

.class-content h3 {
    color: #0B2D5C;
    margin-bottom: 10px;
}

.class-content ul {
    margin-left: 20px;
}

.class-content li {
    margin-bottom: 8px;
}

.centre-heading {
    text-align: center;
    color: #0B2D5C;
    margin: 50px 0 30px;
}

.journey {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 50px;
}

.step {
    background: #0B2D5C;
    color: #fff;
    padding: 20px;
    border-radius: 12px;
    min-width: 140px;
    text-align: center;
}

.arrow {
    font-size: 28px;
    color: #C89B2B;
}

.class-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    margin: 60px 0;
}

.class-layout.reverse {
    direction: rtl;
}

.class-layout.reverse .class-content {
    direction: ltr;
}

.class-image img {
    width: 100%;
    border-radius: 12px;
}

.register-banner {
    background: #C89B2B;
    color: #222;
    text-align: center;
    padding: 60px 20px;
    margin-top: 60px;
}

/* =========================
   GOOGLE CLASSROOM
========================= */

.classroom-grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
}

.classroom-card {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 8px 20px rgba(0,0,0,.08);
    transition: 0.3s;
}

.classroom-card:hover {
    transform: translateY(-6px);
}

.classroom-card h3 {
    color: #0B2D5C;
    margin-bottom: 12px;
}

.classroom-card p {
    color: #666;
}

/* =========================
   POLICIES
========================= */

.policy-intro {
    text-align: center;
    max-width: 900px;
    margin: 0 auto 40px;
}

.policy-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.policy-card {
    background: #fff;
    padding: 28px;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0,0,0,.08);
    transition: 0.3s;
}

.policy-card:hover {
    transform: translateY(-6px);
}

.policy-card h3 {
    color: #0B2D5C;
    margin-top: 0;
}

.policy-card p {
    color: #555;
    margin-bottom: 20px;
}

.policy-card a {
    display: inline-block;
    background: #0B2D5C;
    color: #fff;
    padding: 10px 18px;
    border-radius: 6px;
    font-weight: bold;
}

.policy-card a:hover {
    background: #C89B2B;
    color: #222;
}

.download-note {
    background: #fff;
    text-align: center;
    padding: 40px 20px;
    margin-top: 50px;
    border-radius: 12px;
    box-shadow: 0 5px 18px rgba(0,0,0,.08);
}

/* =========================
   PARENTS
========================= */

.parent-box {
    background: #fff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0,0,0,.08);
    margin: 50px 0;
}

.parent-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin: 40px 0;
}

.parent-card {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 18px rgba(0,0,0,.08);
    text-align: center;
    transition: 0.3s;
}

.parent-card:hover {
    transform: translateY(-6px);
}

.parent-card h3 {
    margin-bottom: 15px;
}

.parent-card i {
    font-size: 45px;
    color: #C89B2B;
    margin-bottom: 20px;
}

.coming-soon {
    background: #eef5ff;
    padding: 35px;
    border-left: 6px solid #0B2D5C;
    margin: 50px 0;
    border-radius: 10px;
}

.faq {
    background: #fff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,.08);
    margin-bottom: 60px;
}

.faq h3,
.faq-item h3 {
    color: #0B2D5C;
}

.faq-item {
    background: #fff;
    margin-bottom: 20px;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 5px 18px rgba(0,0,0,.08);
}

/* =========================
   STAFF / VOLUNTEERS
========================= */

.staff-grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}

.staff-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0,0,0,.08);
    text-align: center;
    transition: 0.3s;
}

.staff-card:hover {
    transform: translateY(-8px);
}

.staff-card img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.staff-info {
    padding: 25px;
}

.staff-info h3 {
    margin-bottom: 8px;
}

.staff-info p {
    color: #777;
}

/* =========================
   VIRSA
========================= */

.virsa-banner {
    background: linear-gradient(135deg, #C89B2B, #0B2D5C);
    color: #fff;
    padding: 70px 30px;
    text-align: center;
    border-radius: 15px;
}

.virsa-banner h2 {
    color: #fff;
}

.programme {
    background: #fff;
    padding: 35px;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0,0,0,.08);
}

/* =========================
   TIMELINE
========================= */

.timeline {
    border-left: 4px solid #C89B2B;
    margin: 40px 0;
    padding-left: 30px;
}

.timeline-item {
    margin-bottom: 40px;
    position: relative;
}

.timeline-item::before {
    content: "";
    width: 18px;
    height: 18px;
    background: #0B2D5C;
    border-radius: 50%;
    position: absolute;
    left: -41px;
    top: 5px;
}

/* =========================
   DONATION / CONTACT
========================= */

.donation-box {
    background: #0B2D5C;
    color: #fff;
    text-align: center;
    padding: 50px;
    border-radius: 15px;
}

.donation-box h2 {
    color: #fff;
}

.bank-details {
    background: #fff;
    color: #333;
    margin-top: 30px;
    padding: 25px;
    border-radius: 10px;
    display: inline-block;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.contact-card {
    background: #fff;
    padding: 35px;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0,0,0,.08);
}

.contact-box {
    background: #0B2D5C;
    color: #fff;
    text-align: center;
    padding: 60px 20px;
    margin-top: 60px;
}

.contact-box h2 {
    color: #fff;
}

iframe {
    width: 100%;
    height: 400px;
    border: none;
    border-radius: 12px;
}

/* =========================
   TABLES
========================= */

.school-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 50px;
}

.school-table th,
.school-table td {
    border: 1px solid #ddd;
    padding: 15px;
    text-align: left;
}

.school-table th {
    background: #0B2D5C;
    color: #fff;
}

table tr:nth-child(even) {
    background: #f5f5f5;
}

table tr:hover {
    background: #eef4ff;
}

/* =========================
   FORMS
========================= */

input,
textarea,
select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    margin-bottom: 15px;
    font-family: Arial, Helvetica, sans-serif;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: #0B2D5C;
}

/* =========================
   SOCIAL ICONS
========================= */

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.social-icons a {
    width: 40px;
    height: 40px;
    background: #fff;
    color: #0B2D5C;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
}

.social-icons a:hover {
    background: #C89B2B;
    color: #fff;
}

/* =========================
   ANIMATIONS
========================= */

.fade-in {
    animation: fadeIn 1s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(25px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hover-lift {
    transition: 0.3s;
}

.hover-lift:hover {
    transform: translateY(-8px);
}

/* =========================
   BACK TO TOP
========================= */

#topBtn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #0B2D5C;
    color: #fff;
    border: none;
    padding: 15px 18px;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    font-size: 20px;
    box-shadow: 0 8px 20px rgba(0,0,0,.2);
    z-index: 999;
}

#topBtn:hover {
    background: #C89B2B;
}

/* =========================
   GENERAL CARD
========================= */

.card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 5px 18px rgba(0,0,0,.08);
    transition: 0.3s;
}

.card:hover {
    transform: translateY(-6px);
}

/* =========================
   FOOTER
========================= */

footer {
    background: #0B2D5C !important;
    color: #fff !important;
    padding: 45px 20px 20px;
    margin-top: 60px;
    border: none !important;
}

footer a {
    color: #ffffff !important;
    text-decoration: underline;
    font-weight: bold;
    visibility: visible !important;
    opacity: 1 !important;
}

footer a:hover {
    color: #C89B2B !important;
}

.footer-container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
    flex-wrap: wrap;
}

.footer-column {
    flex: 1;
    min-width: 220px;
}

.footer-column h3 {
    color: #fff !important;
    margin-top: 0;
}

.footer-column p {
    color: #eee !important;
    margin: 8px 0;
}

.footer-column a {
    color: #fff !important;
    text-decoration: none;
}

.footer-column a:hover {
    color: #C89B2B !important;
}

.footer-bottom {
    width: 90%;
    max-width: 1200px;
    margin: 30px auto 0;
    padding-top: 20px;
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.2);
}

.footer-bottom p {
    color: #ddd !important;
    margin: 0;
}

/* =========================
   RESPONSIVE - TABLET
========================= */

@media (max-width: 768px) {

    .footer-brand img {
        width: 45px;
        height: 45px;
    }

    .footer-brand h3 {
        font-size: 16px;
    }

    .footer-brand {
        gap: 10px;
    }

}
@media (max-width: 900px) {

    .hero {
        min-height: 420px;
    }

    .hero h1 {
        font-size: 40px;
    }

    .hero p {
        font-size: 18px;
    }

    .welcome-grid,
    .two-column,
    .contact-grid,
    .class-layout {
        grid-template-columns: 1fr;
    }

    .class-grid,
    .staff-grid,
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .class-layout.reverse {
        direction: ltr;
    }
}

/* =========================
   RESPONSIVE - MOBILE
========================= */

@media (max-width: 768px) {

    .header-container {
        min-height: 100px;
        padding: 10px;
        gap: 12px;
		Color:white;
    }
.top nav a {
    color: white;
}
    .school-logo img {
        width: 75px;
    }

    .school-title {
        margin-left: 0;
    }

    .school-title h1 {
        font-size: 21px;
    }

    .school-title p {
        font-size: 12px;
    }

    .menu-btn {
        font-size: 28px;
    }

    .page-banner {
        padding: 40px 15px;
    }

    .page-banner h1 {
        font-size: 30px;
    }

    .hero h1 {
        font-size: 34px;
    }

    .hero p {
        font-size: 18px;
    }

    .policy-grid,
    .parent-grid,
    .classroom-grid,
    .feature-grid,
    .news-grid {
        grid-template-columns: 1fr;
    }

    .footer-container {
        flex-direction: column;
        text-align: center;
    }

    .footer-column {
        width: 100%;
    }

    .footer-bottom {
        width: 100%;
    }
}

/* =========================
   PRINT
========================= */

@media print {

    header,
    footer,
    .menu-btn,
    .side-menu,
    .menu-overlay,
    #topBtn {
        display: none !important;
    }

    body {
        background: #fff;
        color: #000;
    }
}


/* =========================================================
   HOME PAGE FIXES
   These rules are shared through the external stylesheet.
========================================================= */

/* Home page header/navigation */
.top {
    margin: 0;
    padding: 0;
    background: #0B2D5C;
    color: #fff;
}

.top nav {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;
    margin: 0;
    padding: 10px 0 15px;
}

.top nav a {
    color: #fff !important;
    text-decoration: none !important;
    padding: 10px 14px;
    font-weight: 600;
    display: inline-block;
}

.top nav a:hover {
    color: #fff !important;
    background: #C89B2B;
    border-radius: 4px;
}

/* Home page heritage section */
.home-heritage-strip {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 30px;
    width: 90%;
    max-width: 1100px;
    margin: 40px auto;
}

.home-heritage-box {
    flex: 1;
    text-align: center;
    padding: 25px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 5px 18px rgba(0,0,0,.08);
}

.home-heritage-box h3 {
    margin-top: 0;
    color: #0B2D5C;
}

.home-heritage-box p {
    margin-bottom: 0;
    color: #222;
}

/* Home page footer */
.home-footer {
    text-align: center;
}

.home-footer .footer-container {
    justify-content: center;
    text-align: center;
}

.home-footer .footer-section {
    text-align: center;
}

.home-footer .footer-bottom {
    text-align: center;
}

.home-footer a {
    text-decoration: none !important;
}

/* Make footer links consistent across the site */
footer a {
    text-decoration: none;
}

footer a:hover {
    text-decoration: none;
}

@media (max-width: 768px) {
    .top nav {
        flex-direction: column;
        width: 100%;
    }

    .top nav a {
        width: 100%;
        text-align: center;
    }

    .home-heritage-strip {
        flex-direction: column;
        gap: 20px;
    }
}

/* =========================
   PHOTO LIBRARY
========================= */

.gallery-section {
    margin-top: 45px;
    margin-bottom: 55px;
}

.gallery-section h2 {
    color: #0B2D5C;
    margin-bottom: 10px;
}

.gallery-section > p {
    margin-bottom: 25px;
}


/* 3 equal columns */

.gallery-section .gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    width: 100%;
}


/* EVERY photo has exactly the same box */

.gallery-section .gallery-item {
    width: 100% !important;
    height: 220px !important;
    max-height: 220px !important;
    overflow: hidden;
    background: #eeeeee;
    border-radius: 6px;
}


/* EVERY image has exactly the same size */

.gallery-section .gallery-item img {
    width: 100% !important;
    height: 220px !important;
    max-width: none !important;
    max-height: 220px !important;
    object-fit: cover !important;
    object-position: center;
    display: block;
}


/* Video */

.gallery-section .gallery-item video {
    width: 100% !important;
    height: 220px !important;
    object-fit: cover;
    display: block;
}


/* Tablet */

@media (max-width: 900px) {

    .gallery-section .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

}


/* Phone */

@media (max-width: 600px) {

    .gallery-section .gallery-grid {
        grid-template-columns: 1fr;
    }

    .gallery-section .gallery-item,
    .gallery-section .gallery-item img,
    .gallery-section .gallery-item video {
        height: 230px !important;
        max-height: 230px !important;
    }

}
/* =========================================================
   END OF MASTER STYLESHEET
========================================================= */
